<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.model.*"%>

 <nav class="navbar navbar-default" role="navigation">
	<div class="container-fluid"> 
    <div class="navbar-header">
        <a class="navbar-brand" href="#">学生信息管理系统</a>
    </div>
    <div>
        <form action="student" method="post" class="navbar-form navbar-left" role="search">
            <input type="text" class="form-control" id="sid" name="sid" placeholder="请输入学号">
            <input type="hidden" name="action" value="query">
            <button type="submit" class="btn btn-default">搜索</button>
        </form>
        <!--向右对齐-->
        <ul class="nav navbar-nav navbar-right">
            <li class="dropdown">
            	<%
            		User user = (User)session.getAttribute("user");
            	%>
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      	<%=user.getUsername() %> <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="密码修改.html">密码修改</a></li>
                    <li class="divider"></li>
                    <li><a href="exit">退出</a></li>
                   
                </ul>
            </li>
        </ul>
        
    </div>
	</div>
</nav>